package com.xquant.transaction_management_system.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xquant.transaction_management_system.mapper.FinancialInstrumentsMapper;
import com.xquant.transaction_management_system.mapper.PersonalConfigMapper;
import com.xquant.transaction_management_system.model.PO.FinancialInstruments;
import com.xquant.transaction_management_system.model.PO.PersonalConfig;
import com.xquant.transaction_management_system.service.FinancialInstrumentsService;
import com.xquant.transaction_management_system.service.PersonalConfigService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonalConfigServiceImpl extends ServiceImpl<PersonalConfigMapper, PersonalConfig> implements PersonalConfigService {
    @Override
    public List<PersonalConfig> getByAccount(String account) {
        QueryWrapper<PersonalConfig> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("transaction_account",account);
        List<PersonalConfig> list = baseMapper.selectList(queryWrapper);
        return list;
    }
}
